{% extends "template-base.html" %}

{% block bodyclasses %}page-test-net{% endblock %}

{% block right_sidebar %}
<div id="test-net-servers" class="card">
  <div class="card-header">
    <h4>Testnet Servers</h4>
  </div>
  <div class="card-body">
    <p>Use the following URLs to connect to the XRP Testnet and send transactions, or <a href="connect-your-rippled-to-the-xrp-test-net.html">connect your own <code>rippled</code> server to the Testnet</a>.</p>
    <h5>Websockets and Ripple API</h5>
    <pre><code>wss://s.altnet.rippletest.net:51233</code></pre>
    <h5>JSON-RPC</h5>
    <pre><code>https://s.altnet.rippletest.net:51234</code></pre>
  </div>
</div>
<div id="devnet-servers" class="card">
  <div class="card-header">
    <h4>Devnet Servers</h4>
  </div>
  <div class="card-body">
    <p>Use the following URLs to connect to the XRP Devnet.</p>
    <h5>Websockets and Ripple API</h5>
    <pre><code>wss://s.devnet.rippletest.net:51233</code></pre>
    <h5>JSON-RPC</h5>
    <pre><code>https://s.devnet.rippletest.net:51234</code></pre>
  </div>
</div>
{% endblock %}

{% block main %}
<section class="container-fluid pt-3 p-md-3">
  <h1>XRP Faucets</h1>

  <div class="content">
    <p>Ripple runs these <a href="parallel-networks.html">parallel XRP Ledger test networks</a>, the Testnet and Devnet, to provide a testing platform for any software products built on the XRP Ledger without using real funds.</p>
    <p>These funds are intended for <strong>testing</strong> only. The Testnet ledger and balances will be reset approximately every 90 days, or when otherwise necessary. Devnet funds may be reset without warning as needed.</p>
    <p>Testnet and Devnet balances are separate. As a precaution, do not use the Testnet or Devnet credentials on the Mainnet.</p>
    <div class="btn-toolbar" role="toolbar" aria-label="Button">
      <button id="testnet-creds-button" class="btn btn-primary mr-2">Generate Testnet credentials</button>
      <button id="devnet-creds-button" class="btn btn-primary">Generate Devnet credentials</button>
    </div><!--/.btn-toolbar-->
    <div id='your-credentials'></div>
    <div id='loader' style="display: none;"><img class='throbber' src="assets/img/xrp-loader-96.png"> Generating Keys...</div>
    <div id='address'></div>
    <div id='secret'></div>
    <div id='balance'></div>
  </div>
</section>
{% endblock %}

{% block endbody %}
  <script type='text/javascript' src='assets/js/test-net.js'></script>

  <script type="application/javascript">
    gtag('config', 'UA-157720658-3', {'content_group1': 'API Tools'});
  </script>
{% endblock %}
